﻿<%@ Page Language="C#" MasterPageFile="~/default.master" AutoEventWireup="true" CodeFile="ClientPassword.aspx.cs" Inherits="ClientPassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server">
<h2>&nbsp;</h2>
<center>
<div class="password-recovery">
    <asp:PasswordRecovery ID="PasswordRecovery1" runat="server"
        AnswerLabelText="<%$Resources:Language, CPAnswerLabelText%>" 
        AnswerRequiredErrorMessage="<%$Resources:Language, CPAnswerRequiredErrorMessage%>" 
        GeneralFailureText="<%$Resources:Language, CPGeneralFailureText%>" 
        OnSendingMail="PasswordRecovery1_SendingMail" 
        QuestionFailureText="<%$Resources:Language, CPQuestionFailureText%>" 
        QuestionInstructionText="<%$Resources:Language, CPQuestionInstructionText%>" 
        QuestionLabelText="<%$Resources:Language, CPQuestionLabelText%>" 
        QuestionTitleText="<%$Resources:Language, CPQuestionTitleText%>" 
        SubmitButtonText="<%$Resources:Language, CPSubmitButtonText%>" 
        SuccessText="<%$Resources:Language, CPSuccessText%>" 
        UserNameFailureText="" 
        UserNameInstructionText="<%$Resources:Language, CPUserNameInstructionText%>" 
        UserNameLabelText="<%$Resources:Language, CPUserNameLabelText%>" 
        UserNameRequiredErrorMessage="<%$Resources:Language, CPUserNameRequiredErrorMessage%>" 
        UserNameTitleText="">
    </asp:PasswordRecovery>
    <asp:Label ID="lblError" Visible="false" ForeColor="Red" runat="server" />
    <asp:Panel ID="pnlPassword" Visible="false" runat="server" CssClass="ctrlCustomerData">
    <table>
            <tr  style="mergin-top:2px;">
                <td class="left">
                    <asp:Label ID="lblPassword" runat="server"><%=Resources.Language.NewPasswordLabelText%></asp:Label>
                </td>
                <td class="right">
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="valPassword" runat="server" ControlToValidate="txtPassword"
                        Display="Dynamic" ErrorMessage="<%$Resources:Language,PasswordRequired %>"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr  style="mergin-top:2px;">
                <td class="left">
                    <asp:Label ID="lblConfirmPassword" runat="server"><%=Resources.Language.ConfirmNewPasswordLabelText%></asp:Label>
                </td>
                <td class="right">
                    <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="valConfirmPassword" runat="server" ControlToValidate="txtConfirmPassword"
                        Display="Dynamic" ErrorMessage="<%$Resources:Language,PasswordRepeatRequired %>"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="valPasswordRepeat" runat="server" ErrorMessage="<%$Resources:Language,ConfirmPasswordCompareErrorMessage %>"
                        ControlToValidate="txtConfirmPassword" ControlToCompare="txtPassword" Operator="Equal"></asp:CompareValidator>
                </td>
            </tr>   
    <tr>
    <td  class="left"><asp:Button runat="server" ID="btnChange" OnClick="btnChange_Click" Text="Potwierdź" style="mergin-top:2px;"/></td>
    <td></td>
    </tr>   
    </table>
    </asp:Panel>
</div>
</center>
</asp:Content>

